//
//  SubjectTwoManualCell.m
//  CoachsBook
//
//  Created by MaBookPro on 2022/8/24.
//

#import "SubjectTwoManualCell.h"

@implementation SubjectTwoManualCell


-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        [self creatcelllist];
    }
    return self;
}

-(void)creatcelllist{
    

    UIView *backV = [[UIView alloc]initWithFrame:CGRectMake(15, 0, APPwidth-30, 65)];
    backV.backgroundColor = rgba(245, 245, 250, 1);
    [self addSubview:backV];

    
    UIImageView *circleimgv = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, backV.width, backV.height)];
    circleimgv.image = [UIImage imageNamed:@"dbq"];
    circleimgv.contentMode = UIViewContentModeScaleAspectFill;
    circleimgv.userInteractionEnabled = YES;
    [backV addSubview:circleimgv];

    
    
    UIButton *bmBtn = [[UIButton alloc]initWithFrame:CGRectMake(backV.width-100,backV.height/2-30/2, 60, 30)];
    [bmBtn setTitle:@"播放" forState:0];
    bmBtn.contentHorizontalAlignment = 0;
    [bmBtn setBackgroundColor:rgba(22, 120, 255, 1)];
    [bmBtn setTitleColor:[UIColor whiteColor] forState:0];
    bmBtn.titleLabel.font = [UIFont systemFontOfSize:13];
    bmBtn.layer.cornerRadius = 15;
    [backV addSubview:bmBtn];

    
}








- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];


}

@end
